<?php
include "conexion.php";

$sql2 = " SELECT * FROM mtrp_datos";
$valor = mysql_query($sql2) or die ("No se ejecuto consulta $sql2");

echo " <table align='center' border='1'>
<tr>
<td><table>
<tr>
<td>NOMBRE</td>
<td>EDAD</td>
<td>OCUPACION</td>
<td>ACCION</td>

</tr> ";
mysql_select_db('mysql') or die('Could not select database');
$sql="SELECT * FROM mtrp_datos";
$result = mysql_query($sql) or die('Query failed(INSERT INTO entities ): ' . mysql_error());
while ($fila = mysql_fetch_assoc($result)) {
echo "<tr> <td> " . $fila['nombre'] .  $fila['app'].  $fila['apm'] ."</td>
<td> " . $fila['edad'] . "</td> 
<td> " . $fila['ocupacion'] . "</td>
<td><a href='modificar2.php?clave=".$fila['id']."'>Modificar</a></td>
</tr>";
}
echo " </table></td></tr></table></body></html>";
echo"<a href=index.html>Regresar</a>"

?>